#ifndef HEXAGONBUTTON_H_
#define HEXAGONBUTTON_H_

#include "ElementButton.h"
#include <TileDescription.h>

class BordLayout;
class BordPixmap;

class HexagonButton : public ElementButton
{
	Q_OBJECT

public:
	// constructor & destructur
	HexagonButton();
	~HexagonButton();

	// getters and setters
	const board::TileData & GetTileData() const { return dTileData; };
	void SetClickableSurface(const QPolygon * clickableSurface) { pClickableSurface = clickableSurface; };
	void SetBordPixmap(const BordPixmap * bordPixmap) { pBordPixmap = bordPixmap; };


protected:
	void paintEvent(QPaintEvent * event);

private:
	const QPolygon * pClickableSurface;
	const BordPixmap * pBordPixmap;
	board::TileData dTileData;
};

#endif /* HEXAGONBUTTON_H_ */
